is there an index to be accessed in the CI foreach with {}-Notation?
Posted
by helle
on Stack Overflow
See other posts from Stack Overflow
or by helle
Published on 2010-06-18T07:32:16Z
Indexed on
2010/06/18
15:23 UTC
Read the original article
Hit count: 159
codeigniter
|notation
Hello Guys,
i'm new with Codeigniter,and whish to know if i can access any kind of iterator for the foreach with {}-Notation in my views.
The thing is, i'm having a list which should be devided after each x items.
example (what i would like to do:
<ul>
{list}
<li>{items}</li>
<? if ($iterator % 15 == 0) echo "</ul><ul>"; ?>
{/list}
</ul>
thanks in advice ;-)
© Stack Overflow or respective owner